% 进入student的目录，提取Probe目录下的数据的特征
% 并且保存
% for student01
clear;
clc;
AllProbeFeature=[];
% 当前目录
current_dir=pwd;
% 进入数据目录
cd(strcat(current_dir,'\data01\Probe'));
n=60;
% 调用函数calculateAverageFeatureForOneSub
% 提取特征，存入AllProbeFeature1变量，k取5s
AllProbeFeature1=calculateAverageFeatureForOneSub(n,5);
% 将AllProbeFeature1合并到AllProbeFeature
% 所有求出的特征的矩阵都要合并到AllProbeFeature
AllProbeFeature=[AllProbeFeature;AllProbeFeature];
%
% 进入新的目录，重复操作
cd(strcat(current_dir,'\data02\Probe'));
n=60;
AllProbeFeature2=calculateAverageFeatureForOneSub(n,5);
AllProbeFeature=[AllProbeFeature;AllProbeFeature2];
%
cd(strcat(current_dir,'\data03\Probe'));
n=58;
AllProbeFeature3=calculateAverageFeatureForOneSub(n,5);
AllProbeFeature=[AllProbeFeature;AllProbeFeature3];
%
cd(strcat(current_dir,'\data04\Probe'));
n=58;
AllProbeFeature4=calculateAverageFeatureForOneSub(n,5);
AllProbeFeature=[AllProbeFeature;AllProbeFeature4];
%
cd(strcat(current_dir,'\data05\Probe'));
n=60;
AllProbeFeature5=calculateAverageFeatureForOneSub(n,5);
AllProbeFeature=[AllProbeFeature;AllProbeFeature5];
%
cd(strcat(current_dir,'\data06\Probe'));
n=58;
AllProbeFeature6=calculateAverageFeatureForOneSub(n,5);
AllProbeFeature=[AllProbeFeature;AllProbeFeature6];
% 最后，保存数据
cd(current_dir);
save AllProbeFeature.mat AllProbeFeature;
